import sys
import importlib
import os
import codecs
import shutil
import random
import re
import json
import struct
import time



COMPETE_DIR = "./uni_hb_m_solution/unione_lite_app_hb_m/include/uni_nlu_content.h"
targetSrc = './uni_nlu_content.h'



if __name__ == '__main__':

    print("prodution test start\n")

    srcFile = open(COMPETE_DIR, mode="r", encoding='utf-8', newline='\n')
    targetFile = open(targetSrc, mode="w", encoding='utf-8', newline='\n')

    result = 0
    try:
        while True:
            srcLine = srcFile.readline()
            if srcLine:
                print(srcLine)
                result = srcLine.find("eCMD_compete")
                if result >= 0 :#eCMD_compete
                    srcLine = '//' + srcLine
            else :
                break
            targetFile.writelines(srcLine)
            
    except Exception as e:
        print('prodution test err:' + str(e))

    srcFile.close()
    targetFile.close()





























